package com.twang.stock.service;

import com.twang.stock.dto.TenXunStock;
import com.twang.stock.entity.CompanyStock;
import com.twang.stock.entity.DfcfBanKuaiMaoLiLv;

import java.util.List;

public interface CompanyStockService {
    List<CompanyStock> list() throws Exception;

    /**
     * 添加关注股票
     *
     * @param code
     * @param desc
     * @throws Exception
     */
    void addStock(String code, String desc, Long uesrId, TenXunStock tenXunStock) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @throws Exception
     */
    void delStock(Integer id);

    /**
     * 置顶
     *
     * @param id
     * @throws Exception
     */
    void zhiDingStock(Integer id);

    List<DfcfBanKuaiMaoLiLv>  query() throws Exception;

     List<CompanyStock> selectById(Long userId) throws Exception;

    }
